Repository navigation
Stop sending analytics to PostHog; D1 is the only store - #78
Merged
Merged
Conversation
Remove the desktop and website event export, the identity-link export and the PostHog-only operator scripts (dashboards, API client, HogQL insights, D1-vs-PostHog reconciliation). Nothing is sent to PostHog any more. Installation erasure still deletes copies PostHog already holds, using POSTHOG_PERSONAL_API_KEY and POSTHOG_PROJECT_ID under its own lease. That is the only remaining PostHog code and goes once the PostHog project is deleted. POSTHOG_PROJECT_TOKEN and DESKTOP_POSTHOG_EXPORT_ENABLED are no longer read, /health drops the forwarding fields, and the analytics report no longer treats posthog_state='pending' as a delivery backlog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…owser sites Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploying scientfactory-website with
|
| Latest commit: |
a7b5d72
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://50031301.scientfactory-website.pages.dev |
| Branch Preview URL: | https://claude-retire-posthog-export.scientfactory-website.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stops every copy of analytics to PostHog. Our D1 database becomes the only analytics store.
DESKTOP_POSTHOG_EXPORT_ENABLED/POSTHOG_PROJECT_TOKENconfig.analytics:reportno longer lists PostHog delivery. The rows that were never exported are not reported as a backlog.D1 still has the history: its oldest event (2026-07-20) is also the oldest one sent to PostHog. 22 rows are gone from D1: expired failure records and 3 completed erasures. No deletion requests are pending or blocked.
Platforms: server-side only (Cloudflare Worker and static pages). No difference between macOS, Windows and Linux clients.
Checks:
bun run checkpasses (162 tests). Codex light review found no issues. The opt-in desktopPipeline test fails the same way on unmodified main, because it builds from a desktop checkout on another branch.Documentation impact: Updated — README.md, src/pages/privacy.astro
🤖 Generated with Claude Code